
import GameDB from "./GameDB";
import GameView from "./GameView/GameView";
import GameEvent from "./GameEvent";

// 游戏牌局管理器
export default class GameCtrl {
    private m_GameDB: GameDB = null;
    private m_GameView: GameView = null;

    public Init(gameView: GameView) {
        this.m_GameView = gameView;
        this.m_GameDB = new GameDB();
        this.m_GameView.BindModel(this.m_GameDB);

        this.m_GameDB.Init();
    }

    public Play() {
        // 移动所有牌到发牌区
        this.m_GameDB.Play();
    }
    public Exit() {
        this.m_GameView.UnBindModel();
    }
}